package com.youyou.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.StringJoiner;

/**
 * @author:Lau
 * @create: 2023-03-30 11:01
 * @Description: 对比对象属性差异
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FieldDiffent {

    private String fieldDesc;
    private String fieldName;
    private String before;
    private String after;

    @Override
    public String toString() {
        return new StringJoiner(", ", "{", "}")
                .add("fieldDesc='" + fieldDesc + "'")
                .add("fieldName='" + fieldName + "'")
                .add("before='" + before + "'")
                .add("after='" + after + "'")
                .toString();
    }
}
